<template>
  <div id="CheckeRgisterNew">
    <van-form validate-first>
      <p class="title">农村房屋结构安全排查登记表</p>
      <p class="subTitle">房屋情况</p>
      <van-field v-model="houseRemoldAuthRecordForm.authNo" placeholder="请输入编号" label="编号" />
      <van-field v-model="houseRemoldAuthRecordForm.authName" placeholder="请输入名称" label="名称" />
      <van-field v-model="houseRemoldAuthRecordForm.address" placeholder="请输入坐落地址" label="坐落地址" />
      <van-field readonly clickable name="datetimePicker" v-model="houseRemoldAuthRecordForm.endDate" label="竣工日期" placeholder="请选择"
                 @click="showPickerq = true" />
      <van-popup v-model="showPickerq" position="bottom" get-container="#popup">
        <van-datetime-picker v-model="currentDate" type="date" title="选择年月日" @cancel="showPickerq = false"
                             @confirm="onConfirm" />
      </van-popup>
      <van-field readonly clickable name="picker" :value="houseRemoldAuthRecordForm.jglx | inUseName(ENUM.JGLXARR)" label="结构类型" placeholder="请选择" @click="ENUM.JGLX = true" />
      <van-popup v-model="ENUM.JGLX" position="bottom" get-container="#popup">
        <van-picker show-toolbar value-key="DICNAME" :columns="ENUM.JGLXARR" @confirm="onConfirmJGLX"
                    @cancel="ENUM.JGLX = false" />
      </van-popup>
      <van-field v-model="houseRemoldAuthRecordForm.buildFloors" type="number"  placeholder="请输入建筑层数" label="建筑层数" />
      <van-field v-model="houseRemoldAuthRecordForm.overFloor" type="number" placeholder="请输入地上层数" label="地上层数" />
      <van-field v-model="houseRemoldAuthRecordForm.underFloor" type="number"  placeholder="请输入地下层数" label="地下层数" />
      <van-field v-model="houseRemoldAuthRecordForm.buildArea" type="number" placeholder="请输入总建筑面积" label="总建筑面积（㎡）" />
      <p class="subTitle">现场调查</p>
      <!--<div v-for="(item,index) in form" >-->

          <!--<p class="subTitle1" :style="{ 'font-weight': item.name1 ? 'bold' : 'none' }">{{ item.name }}</p>-->
          <!--<p class="subTitle1" v-if="item.name1" >{{ item.name1 }}</p>-->
          <!--<div-->
            <!--v-for="(items , indexs) in item.child"-->
            <!--:key="indexs+'child'"-->
          <!--&gt;-->
            <!--&lt;!&ndash; <van-radio-->
              <!--class="vanCheckbox"-->
              <!--:name="items.value"-->
              <!--label-disabled-->
              <!--v-if="!items.child"-->
              <!--@click="radioChange(items)"-->
              <!--shape="square">-->
              <!--{{ items.name }}-->
            <!--</van-radio> &ndash;&gt;-->
            <!--<van-checkbox-group v-model="houseRemoldAuthRecordFormCheck[item.key]" >-->
              <!--<van-checkbox-->
                <!--class="vanCheckbox"-->
                <!--:name="items.value + items.name"-->
                <!--label-disabled-->
                <!--v-if="!items.child"-->
                <!--@click="CheckChange(items)"-->
                <!--shape="square"-->
                <!--&gt;{{ items.name }}</van-checkbox>-->

            <!--</van-checkbox-group>-->
            <!--<van-field-->
              <!--v-if="items.name=='其他' && houseRemoldAuthRecordForm[item.key]=='其他'"-->
              <!--v-model="houseRemoldAuthRecordForm[items.key]"-->
              <!--rows="2"-->
              <!--autosize-->
              <!--type="textarea"-->
              <!--placeholder="请输入内容"-->
              <!--show-word-limit-->
            <!--/>-->
            <!--&lt;!&ndash;{{items.key}}&ndash;&gt;-->
            <!--<van-radio-group v-model="houseRemoldAuthRecordForm[items.key]">-->
              <!--<p-->
                <!--class="vanCheckbox"-->
                <!--v-if="items.child"-->
                <!--style="padding: 10px 6px;"-->
              <!--&gt;-->
                <!--{{ items.name }}-->
                <!--<template v-if="items.child" >-->
                  <!--&lt;!&ndash; :name="item.name+'_'+items.name+'_'+ite.name+ite.key+ite.value" &ndash;&gt;-->
                  <!--（<van-radio-->
                  <!--style="display: inline-flex"-->
                  <!--v-for="(ite,ind) in items.child"-->
                  <!--:key="ind+'ind'"-->
                  <!--:name="ite.value"-->
                  <!--@click="radioChange(ite)"-->
                  <!--shape="square">-->
                  <!--{{ ite.name }}-->
                <!--</van-radio>）-->
                <!--</template>-->
              <!--</p>-->
            <!--</van-radio-group>-->
          <!--</div>-->
      <!--</div>-->
      <div v-for="(item,index) in form" >
        <!--<van-radio-group     v-model="houseRemoldAuthRecordForm[item.key]">-->
          <p class="subTitle1" :style="{ 'font-weight': item.name1 ? 'bold' : 'none' }">{{ item.name }}</p>
          <p class="subTitle1" v-if="item.name1" >{{ item.name1 }}</p>
          <div
            v-for="(items , indexs) in item.child"
            :key="indexs+'child'"
          >
            <van-radio-group   v-model="houseRemoldAuthRecordForm[item.key]">
              <van-radio
              class="vanCheckbox"
              :name="items.value"
              label-disabled
              v-if="!items.child"
              @click="radioChange(items)"
              shape="square">
              {{ items.name }}
            </van-radio>
              <van-field
              v-if="items.name=='其他' && houseRemoldAuthRecordForm[item.key]=='其他'"
              v-model="houseRemoldAuthRecordForm[items.key]"
              rows="2"
              autosize
              type="textarea"
              placeholder="请输入内容"
              show-word-limit
            />
              <p
              class="vanCheckbox"
              v-if="items.child"
              style="padding: 10px 6px;"
            >
              {{ items.name }}
              <template v-if="items.child" >
                （<van-radio style="display: inline-flex" v-for="(ite,ind) in items.child" :key="ind+'ind'" :name="ite.value" shape="square">{{ ite.name }}</van-radio>）
              </template>
            </p>
            </van-radio-group>
          </div>
      </div>
      <!--<p class="subTitle">鉴定情况</p>-->
      <!--<van-radio-group v-model="HouseRemoldAuthRecordForm.JDQK" >-->
        <!--<div v-for="(items,index) in XCDC" :key="index" style="padding-top: 10px">-->
          <!--<van-radio v-if="!items.child" class="vanCheckbox"  :name="items.name" label-disabled shape="square">-->
            <!--{{ items.name }}-->
          <!--</van-radio>-->
          <!--<template v-if="items.child" >-->
            <!--<span>{{ items.name }}</span>-->
            <!--（<van-radio v-for="(ite,ind) in items.child" :key="ind" :name="items.name+ite.name" shape="square"-->
                        <!--style="display: inline-flex">{{ ite.name }}-->
          <!--</van-radio>）-->
          <!--</template>-->
        <!--</div>-->
      <!--</van-radio-group>-->

    </van-form>
  </div>
</template>

<script>
  import {
    dangerHousesavegetAllAuthInfo,
    QuerySignCallback } from '@/utils/api'
  export default {
    name: "CheckeRgisterNew",
    data() {
      return {
        HouseRemoldRadio:'',
        showPickerq: false,
        currentDate: new Date(),
        houseRemoldAuthRecordFormCheck:{
        },
        houseRemoldAuthRecordForm: {
          authNo:'',
          authName:'',
          address:'',
          endDate:'',
          jglx:'',
          buildFloors:'',
          overFloor:'',
          underFloor:'',
          buildArea:'',
          foundationNoException:0,
          foundationDown:0,
          foundationQingxie:0,
          foundationDwjs:0,
          foundationJkbdthtqk:0,
          foundationOther:0,
          foundationOtherComment:0,
          liangGangNoException:0,
          liangGangMxbx:0,
          liangGangLf:0,
          liangGangGjxshntzl:0,
          liangMuNoException:0,
          liangMuMxbx:0,
          liangMuLf:0,
          liangMuGjxshntzl:0,
          liangMuJdlj:0,
          //lianggang
          zhuGangNoException:0,
          zhuGangMxbx:0,
          zhuGangLf:0,
          zhuMuGjxshntzl:0,
          zhuMuNoException:0,
          zhuMuMxbx:0,
          zhuMuLf:0,
          zhuMuJdlj:0,
          //zhugang
          zhuanNoException:0,
          zhuanMxbx:0,
          zhuanLf:0,
          zhuanGjxshntzl:0,
          zhuanJdlj:0,
          qiangZhuanNoException:0,
          qiangZhuanMxbx:0,
          qiangZhuanLf:0,
          qiangZhuanGjxshntzl:0,
          qiangZhuanJdlj:0,
          qiangHntNoException:0,
          qiangHntMxbx:0,
          qiangHntLf:0,
          qiangHntGjfs:0,
          qiangLgNoException:0,
          qiangLgMxbx:0,
          qiangLgLf:0,
          qiangLgSt:0,
          qiangLgLhps:0,
          qiangJgljzcNoException:0,
          qiangJgljzcXtqs:0,
          qiangJgljzcBx:0,
          qiangJgljzcGzgjljcps:0,
          whjgWhfgqNoException:0,
          whjgWhfgqBx:0,
          whjgWhfgqScst:0,
          whjgMcNoException:0,
          whjgMcBx:0,
          whjgMcLhps:0,
          whjgWgwNoException:0,
          whjgWgwBx:0,
          whjgWgwLhps:0,
          whjgFsgjNoException:0,
          whjgFsgjBx:0,
          whjgFsgjLhps:0,
          sssbDlssNoException:0,
          sssbDlssJctz:0,
          sssbDlssJcddwx:0,
          sssbPsgdNoException:0,
          sssbRqgdLhps:0,
          sssbPsgdJcddwx:0,
          sssbRqgdNoException:0,
          sssbRqgdLq:0,
          cdhjFwcdPd:0,
          cdhjFwcdSj:0,
          cdhjFwcdXy:0,
          cdhjFwcdSkb:0,
          cdhjFwcdDwdd:0,
          cdhjFwcdTxq:0,
          cdhjFwcdQt:0,
          cdhjXlsgWyc:0,
          cdhjXlsgZd:0,
          cdhjXlsgJs:0,
          cdhjXlsgTtrd:0,
          cdhjXlsgQt:0,
          cdhjXlsgQtComment:0,
          cdhjHxqsWyc:0,
          cdhjHxqsYs:0,
          cdhjHxqsLs:0,
          cdhjHxqsHs:0,
          cdhjHxqsQt:0,
          cdhjHxqsQtComment:0,
          lssyJgcgWcg:0,
          lssyJgcgYbcg:0,
          lssyJgcgYzcg:0,
          lssyJcgzWjc:0,
          lssyJcgzJyc:0,
          lssyJjcgzJlc:0,
          lssyJjcgzJscjys:0,
          lssyXsjgZcsy:0,
          lssyXsjgZlyy:0,
          lssyXsjgZhyy:0,
          lssyXsjgSygnyy:0,
          lssyXsjgQt:0,
          lssyXsjgQtComment:0,
          lssyLszhZcsy:0,
          lssyLszhHz:0,
          lssyLszhFz:0,
          lssyLszhXz:0,
          lssyLszhSz:0,
          lssyLszhDz:0,
          lssyLszhQt:0,
          lssyLszhQtComment:0,
          lssyGnbgWbg:0,
          lssyGnbgZhbsy:0,
          lssyGnbgZzbbg:0,
          lssyGnbgBgbsy:0,
          lssyGnbgGybbg:0,
          lssyGnbgQt:0,
          lssyGnbgQtComment:0,
          objectNo:"",
          zhuGangGjxshntzl:0,
          qiangWgNoException:0,
          qiangWgMxbx:0,
          qiangWgLf:0,
          qiangWgSt:0,
          qiangWgLhps:0,
          whjgWhfgqXtqs:0,
          whjgWhfgqFhfh:0,
          whjgWhfgqWqkgtk:0,
          sssbPsgdJctz:0,
          lssyGnbgGybsy:0
        },
        form: [
          {
            name: "地基基础",
            value: '',
            key: 'foundationNoException',
            child: [
              {
                name: '无异常',
                key: 'foundationNoException',
                value: 1,
              },
              {
                name: '沉降裂缝',
                key: 'foundationDown',
                value: 2,
                child: [{
                  name: '轻微',
                  key: 'foundationDown',
                  value: 3,
                }, {
                  name: '一般',
                  key: 'foundationDown',
                  value: 4,
                }, {
                  name: '严重',
                  key: 'foundationDown',
                  value: 5,
                }]
              },
              {
                name: '明显倾斜',
                key: 'foundationQingxie',
                value: 6,
              },
              {
                name: '低洼积水',
                key: 'foundationDwjs',
                value: 7,
              },
              {
                name: '架空板代替回填情况',
                key: 'foundationJkbdthtqk',
                value: 8,
                child: [{
                  name: '轻微',
                  key: 'foundationJkbdthtqk',
                  value: 9,
                }, {
                  name: '一般',
                  key: 'foundationJkbdthtqk',
                  value: 10,
                }, {
                  name: '严重',
                  key: 'foundationJkbdthtqk',
                  value: 11,
                }]
              },
              {
                name: '其他',
                key: 'foundationOther',
                value: 12,
              }
            ]
          },
          {
            name: "梁",
            name1: "钢筋混凝土",
            key:'liangGangNoException',
            value: '',
            child: [
              {
                name: '无异常',
                key: 'liangGangNoException',
                value: 1,
              },
              {
                name: '明显变形',
                value: 2,
                key: 'liangGangMxbx',
              },
              {
                name: '裂缝',
                key: 'liangGangLf',
                value: 3,
                child: [{
                  name: '轻微',
                  key: 'liangGangLf',
                  value: 5,
                }, {
                  name: '一般',
                  key: 'liangGangLf',
                  value: 6,
                }, {
                  name: '严重',
                  key: 'liangGangLf',
                  value: 7,
                }]
              },
              {
                name: '钢筋锈蚀、混凝土胀裂',
                key: 'liangGangGjxshntzl',
                value: 4,
                child: [{
                  name: '轻微',
                  key: 'liangGangGjxshntzl',
                  value:8,
                }, {
                  name: '一般',
                  key: 'liangGangGjxshntzl',
                  value: 9,
                }, {
                  name: '严重',
                  key: 'liangGangGjxshntzl',
                  value: 10,
                }]
              }
            ]
          },
          {
            name: "木",
            key:'liangMuNoException',
            value: '',
            child: [{
              name: '无异常',
              key: 'liangMuNoException',
              value:1,

            }, {
              name: '明显变形',
              key: 'liangMuMxbx',
              value: 2,
            }, {
              name: '裂缝',
              key: '',
              value: 3,
              child: [
                {
                  name: '轻微',
                  key: 'liangMuLf',
                  value: 13,
                }, {
                  name: '一般',
                  key: 'liangMuLf',
                  value: 14,
                }, {
                  name: '严重',
                  key: 'liangMuLf',
                  value: 15,
                }]
            }, {
              name: '腐朽蛀蚀',
              key: 'liangMuGjxshntzl',
              value: 4,
              child: [{
                name: '轻微',
                key: 'liangMuGjxshntzl',
                value: 9,
              }, {
                name: '一般',
                key: 'liangMuGjxshntzl',
                value: 10,
              }, {
                name: '严重',
                key: 'liangMuGjxshntzl',
                value: 11,
              }]
            }, {
              name: '节点连接',
              key: 'liangMuJdlj',
              value: 5,
              child: [{
                name: '轻微',
                key: 'liangMuJdlj',
                value: 6,
              }, {
                name: '一般',
                key: 'liangMuJdlj',
                value: 7,
              }, {
                name: '严重',
                key: 'liangMuJdlj',
                value: 8,
              }]
            }]
          },
          {
            name: "柱",
            key: 'zhuGangNoException',
            value: '',
            name1: "钢筋混凝土",
            child: [{
              name: '无异常',
              key: 'zhuGangNoException',
              value: 1,
            }, {
              name: '明显变形',
              key: 'zhuGangMxbx',
              value: 2,
            }, {
              name: '裂缝',
              key: 'zhuGangLf',
              value:3,
              child: [{
                name: '轻微',
                key: 'zhuGangLf',
                value: 8,
              }, {
                name: '一般',
                key: 'zhuGangLf',
                value: 9,
              }, {
                name: '严重',
                key: 'zhuGangLf',
                value: 10,
              }]
            }, {
              name: '露筋锈蚀、混凝土胀裂',
              key: 'zhuGangGjxshntzl',
              value: 4,
              child: [{
                name: '轻微',
                key: 'zhuGangGjxshntzl',
                value: 5,
              }, {
                name: '一般',
                key: 'zhuGangGjxshntzl',
                value: 6,
              }, {
                name: '严重',
                key: 'zhuGangGjxshntzl',
                value: 7,
              }]
            }]
          },
          // {
          //   name: "木",
          //   value: '',
          //   key: '',
          //   child: [{
          //     name: '无异常',
          //     key: 'zhuMuNoException',
          //     value: '',
          //   }, {
          //     name: '明显变形',
          //     key: 'zhuMuMxbx',
          //     value: '',
          //   }, {
          //     name: '裂缝',
          //     key: 'zhuMuLf',
          //     value: '',
          //     child: [{
          //       name: '轻微',
          //       key: 'zhuMuLf',
          //       value: 0,
          //     }, {
          //       name: '一般',
          //       key: 'zhuMuLf',
          //       value: 1,
          //     }, {
          //       name: '严重',
          //       key: 'zhuMuLf',
          //       value: 2,
          //     }]
          //   }, {
          //     name: '腐朽蛀蚀',
          //     key: 'zhuMuGjxshntzl',
          //     value: '',
          //     child: [{
          //       name: '轻微',
          //       key: 'zhuMuGjxshntzl',
          //       value: 0,
          //     }, {
          //       name: '一般',
          //       key: 'zhuMuGjxshntzl',
          //       value: 1,
          //     }, {
          //       name: '严重',
          //       key: 'zhuMuGjxshntzl',
          //       value: 2,
          //     }]
          //   }, {
          //     name: '节点连接',
          //     key: 'zhuMuJdlj',
          //     value: '',
          //     child: [{
          //       name: '轻微',
          //       key: 'zhuMuJdlj',
          //       value: 0,
          //     }, {
          //       name: '一般',
          //       key: 'zhuMuJdlj',
          //       value: 1,
          //     }, {
          //       name: '严重',
          //       key: 'zhuMuJdlj',
          //       value: 2,
          //     }]
          //   }]
          // },
          // {
          //   name: "钢",
          //   value: '',
          //   key:'zhuGangNoException',
          //   child: [{
          //     name: '无异常',
          //     key: '',
          //     value: '',
          //   }, {
          //     name: '明显变形',
          //     key: '',
          //     value: '',
          //   }, {
          //     name: '裂缝',
          //     key: '',
          //     child: [{
          //       name: '轻微',
          //       key: '',
          //       value: '',
          //     }, {
          //       name: '一般',
          //       key: '',
          //       value: '',
          //     }, {
          //       name: '严重',
          //       key: '',
          //       value: '',
          //     }]
          //   }, {
          //     name: '锈蚀',
          //     key: '',
          //     child: [{
          //       name: '轻微',
          //       key: '',
          //     }, {
          //       name: '一般',
          //       key: '',
          //     }, {
          //       name: '严重',
          //       key: '',
          //     }]
          //   }, {
          //     name: '节点连接',
          //     key: '',
          //     child: [{
          //       name: '轻微',
          //       key: '',
          //     }, {
          //       name: '一般',
          //       key: '',
          //     }, {
          //       name: '严重',
          //       key: '',
          //     }]
          //   }]
          // },
          {
            name: "砖",
            key: 'zhuanNoException',
            value: '',
            child: [{
              name: '无异常',
              value:1,
              key: 'zhuanNoException',
            }, {
              name: '明显变形',
              value:2,
              key: 'zhuanMxbx',
            }, {
              name: '裂缝',
              key: 'zhuanLf',
              child: [{
                name: '轻微',
                key: 'zhuanLf',
                value: 3,
              }, {
                name: '一般',
                key: 'zhuanLf',
                value: 4,
              }, {
                name: '严重',
                key: 'zhuanLf',
                value: 5,
              }]
            }, {
              name: '风化粉化',
              key: 'zhuanGjxshntzl',
              value: '',
              child: [{
                name: '轻微',
                key: 'zhuanGjxshntzl',
                value: 6,
              }, {
                name: '一般',
                key: 'zhuanGjxshntzl',
                value: 7,
              }, {
                name: '严重',
                key: 'zhuanGjxshntzl',
                value: 8,
              }]
            }, {
              name: '受潮渗漏',
              key: 'zhuanJdlj',
              value: '',
              child: [{
                name: '轻微',
                key: 'zhuanJdlj',
                value: 9,
              }, {
                name: '一般',
                key: 'zhuanJdlj',
                value: 10,
              }, {
                name: '严重',
                key: 'zhuanJdlj',
                value: 11,
              }]
            }]
          },
          {
            name: "承重墙体",
            name1: "砖（砌体）",
            key: 'qiangZhuanNoException',
            value: '',
            child: [{
              name: '无异常',
              key: 'qiangZhuanNoException',
              value: 1,
            }, {
              name: '明显变形',
              key: 'qiangZhuanMxbx',
              value: 2,
            }, {
              name: '裂缝',
              key: 'qiangZhuanLf',
              child: [{
                name: '轻微',
                key: 'qiangZhuanLf',
                value: 3,
              }, {
                name: '一般',
                key: 'qiangZhuanLf',
                value: 4,
              }, {
                name: '严重',
                key: 'qiangZhuanLf',
                value: 5,
              }]
            }, {
              name: '风化粉化',
              key: 'qiangZhuanGjxshntzl',
              child: [{
                name: '轻微',
                key: 'qiangZhuanGjxshntzl',
                value: 6,
              }, {
                name: '一般',
                key: 'qiangZhuanGjxshntzl',
                value: 7,
              }, {
                name: '严重',
                key: 'qiangZhuanGjxshntzl',
                value: 8,
              }]
            }, {
              name: '受潮渗漏',
              key: 'qiangZhuanJdlj',
              child: [{
                name: '轻微',
                key: 'qiangZhuanJdlj',
                value: 9,
              }, {
                name: '一般',
                key: 'qiangZhuanJdlj',
                value: 10,
              }, {
                name: '严重',
                key: 'qiangZhuanJdlj',
                value: 11,
              }]
            }]
          },
          {
            name: "混凝土",
            key: 'qiangHntNoException',
            value: '',
            child: [{
              name: '无异常',
              key: 'qiangHntNoException',
              value: 1
            }, {
              name: '明显变形',
              key: 'qiangHntMxbx',
              value: 2
            }, {
              name: '裂缝',
              key: 'qiangHntLf',
              child: [{
                name: '轻微',
                key: 'qiangHntLf',
                value: 3
              }, {
                name: '一般',
                key: 'qiangHntLf',
                value: 4
              }, {
                name: '严重',
                key: 'qiangHntLf',
                value: 5
              }]
            }, {
              name: '露筋锈蚀',
              key: 'qiangHntGjfs',
              child: [{
                name: '轻微',
                key: 'qiangHntGjfs',
                value: 6
              }, {
                name: '一般',
                key: 'qiangHntGjfs',
                value: 7
              }, {
                name: '严重',
                key: 'qiangHntGjfs',
                value: 8
              }]
            }]
          },
          {
            name: "楼盖",
            value: '',
            key: 'qiangLgNoException',
            child: [{
              name: '无异常',
              key: 'qiangLgNoException',
              value: 1,
            }, {
              name: '明显变形',
              key: 'qiangLgMxbx',
              value: 2,
            }, {
              name: '裂缝',
              key: 'qiangLgLf',
              child: [{
                name: '轻微',
                key: 'qiangLgLf',
                value: 3
              }, {
                name: '一般',
                key: 'qiangLgLf',
                value: 4
              }, {
                name: '严重',
                key: 'qiangLgLf',
                value: 5
              }]
            }, {
              name: '渗透',
              key: 'qiangLgSt',
              child: [{
                name: '轻微',
                key: 'qiangLgSt',
                value: 6
              }, {
                name: '一般',
                key: 'qiangLgSt',
                value: 7
              }, {
                name: '严重',
                key: 'qiangLgSt',
                value: 8
              }]
            }, {
              name: '老化破损',
              key: 'qiangLgLhps',
              child: [{
                name: '轻微',
                key: 'qiangLgLhps',
                value: 9
              }, {
                name: '一般',
                key: 'qiangLgLhps',
                value: 10
              }, {
                name: '严重',
                key: 'qiangLgLhps',
                value: 11
              }]
            }]
          },
          {
            name: "屋盖",
            value: '',
            key: 'qiangWgNoException',
            child: [{
              name: '无异常',
              key: 'qiangWgNoException',
              value:1,
            }, {
              name: '明显变形',
              key: 'qiangWgMxbx',
              value: 2,
            }, {
              name: '裂缝',
              key: 'qiangWgLf',
              child: [{
                name: '轻微',
                key: 'qiangWgLf',
                value: 3
              }, {
                name: '一般',
                key: 'qiangWgLf',
                value: 4
              }, {
                name: '严重',
                key: 'qiangWgLf',
                value: 5
              }]
            }, {
              name: '渗透',
              key: 'qiangWgSt',
              child: [{
                name: '轻微',
                key: 'qiangWgSt',
                value: 6
              }, {
                name: '一般',
                key: 'qiangWgSt',
                value: 7
              }, {
                name: '严重',
                key: 'qiangWgSt',
                value: 8
              }]
            }, {
              name: '老化破损',
              key: 'qiangWgLhps',
              child: [{
                name: '轻微',
                key: 'qiangWgLhps',
                value: 9
              }, {
                name: '一般',
                key: 'qiangWgLhps',
                value: 10
              }, {
                name: '严重',
                key: 'qiangWgLhps',
                value: 11
              }]
            }]
          },
          {
            name: "构造连接支撑",
            value: '',
            key: 'qiangJgljzcNoException',
            child: [{
              name: '无异常',
              key: 'qiangJgljzcNoException',
              value: 1,
            }, {
              name: '先天缺失',
              key: 'qiangJgljzcXtqs',
              child: [{
                name: '未设支撑',
                key: 'qiangJgljzcXtqs',
                value: 2,
              }, {
                name: '结构构造简易',
                key: 'qiangJgljzcXtqs',
                value: 3
              }]
            }, {
              name: '明显变形',
              key: 'qiangJgljzcBx',
              value: '4'
            }, {
              name: '各构件连接处破损',
              key: 'qiangJgljzcGzgjljcps',
              child: [{
                name: '轻微',
                key: 'qiangJgljzcGzgjljcps',
                value: 5
              }, {
                name: '一般',
                key: 'qiangJgljzcGzgjljcps',
                value: 6
              }, {
                name: '严重',
                key: 'qiangJgljzcGzgjljcps',
                value: 7
              }]
            }]
          },
          {
            name: "围护结构",
            name1: "围护分隔墙体",
            key: 'whjgWhfgqNoException',
            value: '',
            child: [{
              name: '无异常',
              key: 'whjgWhfgqNoException',
              value: 1,
            }, {
              name: '明显变形',
              key: 'whjgWhfgqBx',
              value: 2,
            }, {
              name: '裂缝',
              key: 'whjgWhfgqXtqs',
              child: [{
                name: '轻微',
                key: 'whjgWhfgqXtqs',
                value: 3
              }, {
                name: '一般',
                key: 'whjgWhfgqXtqs',
                value: 4
              }, {
                name: '严重',
                key: 'whjgWhfgqXtqs',
                value: 5
              }]
            }, {
              name: '风化粉化',
              key: 'whjgWhfgqFhfh',
              child: [{
                name: '轻微',
                key: 'whjgWhfgqFhfh',
                value: 6
              }, {
                name: '一般',
                key: 'whjgWhfgqFhfh',
                value: 7
              }, {
                name: '严重',
                key: 'whjgWhfgqFhfh',
                value: 8
              }]
            }, {
              name: '外墙饰面空鼓脱开',
              key: 'whjgWhfgqWqkgtk',
              child: [{
                name: '轻微',
                key: 'whjgWhfgqWqkgtk',
                value: 9
              }, {
                name: '一般',
                key: 'whjgWhfgqWqkgtk',
                value: 10
              }, {
                name: '严重',
                key: 'whjgWhfgqWqkgtk',
                value: 11
              }]
            }, {
              name: '受潮渗漏',
              key: 'whjgWhfgqScst',
              child: [{
                name: '轻微',
                key: 'whjgWhfgqScst',
                value: 12
              }, {
                name: '一般',
                key: 'whjgWhfgqScst',
                value: 13
              }, {
                name: '严重',
                key: 'whjgWhfgqScst',
                value: 14
              }]
            }]
          },
          {
            name: "门窗",
            value: '',
            key: 'whjgMcNoException',
            child: [{
              name: '无异常',
              key: 'whjgMcNoException',
              value: 1,
            }, {
              name: '明显变形',
              key: 'whjgMcBx',
              value: 2,
            }, {
              name: '老化破损',
              key: 'whjgMcLhps',
              child: [{
                name: '轻微',
                key: 'whjgMcLhps',
                value: 3
              }, {
                name: '一般',
                key: 'whjgMcLhps',
                value: 4
              }, {
                name: '严重',
                key: 'whjgMcLhps',
                value: 5
              }]
            }]
          },
          {
            name: "外挂物",
            value: '',
            key: 'whjgWgwNoException',
            child: [{
              name: '无异常',
              key: 'whjgWgwNoException',
              value: 1,
            }, {
              name: '明显变形',
              key: 'whjgWgwBx',
              value: 2,
            }, {
              name: '老化破损',
              key: 'whjgWgwLhps',
              child: [{
                name: '轻微',
                key: 'whjgWgwLhps',
                value: 3
              }, {
                name: '一般',
                key: 'whjgWgwLhps',
                value: 4
              }, {
                name: '严重',
                key: 'whjgWgwLhps',
                value: 5
              }]
            }]
          },
          {
            name: "附属构件",
            value: '',
            key:'whjgFsgjNoException',
            child: [{
              name: '无异常',
              key: 'whjgFsgjNoException',
              value:1,
            }, {
              name: '明显变形',
              key: 'whjgFsgjBx',
              value: 2,
            }, {
              name: '老化破损',
              key: 'whjgFsgjLhps',
              child: [{
                name: '轻微',
                key: 'whjgFsgjLhps',
                value: 3
              }, {
                name: '一般',
                key: 'whjgFsgjLhps',
                value: 4
              }, {
                name: '严重',
                key: 'whjgFsgjLhps',
                value: 5
              }]
            }]
          },
          {
            name: "设施设备",
            key:'sssbDlssNoException',
            name1: "电路设施",
            value: '',
            child: [{
              name: '无异常',
              key: 'sssbDlssNoException',
              value: 1,
            }, {
              name: '经常跳闸',
              key: 'sssbDlssJctz',
              value: 2,
            }, {
              name: '经常断电维修',
              key: 'sssbDlssJcddwx',
              value: 3,
            }]
          },
          {
            name: "排水管道",
            value: '',
            key:'sssbPsgdNoException',
            child: [{
              name: '无异常',
              key: 'sssbPsgdNoException',
              value: 1,
            }, {
              name: '老化破损',
              key: 'sssbPsgdJctz',
              child: [{
                name: '轻微',
                key: 'sssbPsgdJctz',
                value: 2
              }, {
                name: '一般',
                key: 'sssbPsgdJctz',
                value: 3
              }, {
                name: '严重',
                key: 'sssbPsgdJctz',
                value: 4
              }]
            }, {
              name: '堵塞',
              key: 'sssbPsgdJcddwx',
              child: [{
                name: '轻微',
                key: 'sssbPsgdJcddwx',
                value: 5
              }, {
                name: '一般',
                key: 'sssbPsgdJcddwx',
                value: 6
              }, {
                name: '严重',
                key: 'sssbPsgdJcddwx',
                value: 7
              }]
            }]
          },
          {
            name: "燃气管道",
            value: '',
            key: 'sssbRqgdNoException',
            child: [{
              name: '无异常',
              key: 'sssbRqgdNoException',
              value: 1,
            }, {
              name: '老化破损',
              key: 'sssbRqgdLhps',
              value: 2,
              child: [{
                name: '轻微',
                key: 'sssbRqgdLhps',
                value: 3
              }, {
                name: '一般',
                key: 'sssbRqgdLhps',
                value: 4
              }, {
                name: '严重',
                key: 'sssbRqgdLhps',
                value: 5
              }]
            }, {
              name: '漏气',
              key: 'sssbRqgdLq',
              value: 6,
            }]
          },
          {
            name: "场地环境",
            name1: "房屋场地",
            key: 'cdhjFwcdPd',
            value: '',
            child: [{
              name: '平地',
              key: 'cdhjFwcdPd',
              value: 1,
            }, {
              name: '山脚',
              key: 'cdhjFwcdSj',
              value: 2,
            }, {
              name: '悬崖',
              key: 'cdhjFwcdXy',
              value: 3,
            }, {
              name: '水库边',
              key: 'cdhjFwcdSkb',
              value: 4,
            }, {
              name: '低洼地带',
              key: 'cdhjFwcdDwdd',
              value: 5,
            }, {
              name: '塌陷区',
              key: 'cdhjFwcdTxq',
              value: 6,
            }, {
              name: '其他',
              key: 'cdhjFwcdQt',
              value: 7,
            }]
          },
          {
            name: "相邻施工",
            value: '',
            key: 'cdhjXlsgWyc',
            child: [{
              name: '无异常',
              key: 'cdhjXlsgWyc',
              value: 1,
            }, {
              name: '振动',
              key: 'cdhjXlsgZd',
              value: 2,
            }, {
              name: '降水',
              key: 'cdhjXlsgJs',
              value: 3,
            }, {
              name: '土体扰动',
              key: 'cdhjXlsgTtrd',
              value:4,
            }, {
              name: '其他',
              key: 'cdhjXlsgQt',
              value: 5,
            }]
          },
          {
            name: "化学侵蚀",
            value: '',
            key: 'cdhjHxqsWyc',
            child: [{
              name: '无异常',
              key: 'cdhjHxqsWyc',
              value: 1,
            }, {
              name: '盐酸',
              key: 'cdhjHxqsYs',
              value: 2,
            }, {
              name: '硫酸',
              key: 'cdhjHxqsLs',
              value: 3,
            }, {
              name: '海水',
              key: 'cdhjHxqsHs',
              value: 4,
            }, {
              name: '其他',
              key: 'cdhjHxqsQt',
              value: 5,
            }]
          },
          {
            name: "历史使用",
            name1: "结构拆改",
            key: 'lssyJgcgWcg',
            value: '',
            child: [{
              name: '无拆改',
              key: 'lssyJgcgWcg',
              value: 1,
            }, {
              name: '一般拆改',
              key: 'lssyJgcgYbcg',
              value: 2,
            }, {
              name: '严重拆改',
              key: 'lssyJgcgYzcg',
              value: 3,
            }]
          },
          {
            name: "加层改造",
            value: '',
            key: 'lssyJcgzWjc',
            child: [{
              name: '无加层',
              key: 'lssyJcgzWjc',
              value: 1,
            }, {
              name: '加一层',
              key: 'lssyJcgzJyc',
              value:2,
            }, {
              name: '加二层',
              key: 'lssyJjcgzJlc',
              value:3,
            }, {
              name: '加三层及以上',
              key: 'lssyJjcgzJscjys',
              value: 4,
            }]
          },
          {
            name: "修缮加固",
            key:'lssyXsjgZcsy',
            value: '',
            child: [{
              name: '正常使用',
              key: 'lssyXsjgZcsy',
              value: 1
            }, {
              name: '质量原因',
              key: 'lssyXsjgZlyy',
              value: 2
            }, {
              name: '灾害原因',
              key: 'lssyXsjgZhyy',
              value: 3
            }, {
              name: '使用功能原因',
              key: 'lssyXsjgSygnyy',
              value:4
            }, {
              name: '其他',
              key: 'lssyXsjgQt',
              value: 5
            }]
          },
          {
            name: "历史灾害",
            value: '',
            key:'lssyLszhZcsy',
            child: [{
              name: '正常使用',
              key: 'lssyLszhZcsy',
              value: 1
            }, {
              name: '火灾',
              key: 'lssyLszhHz',
              value: 2
            }, {
              name: '风灾',
              key: 'lssyLszhZcsy',
              value: 3
            }, {
              name: '雪灾',
              key: 'lssyLszhZcsy',
              value: 4
            }, {
              name: '水灾',
              key: 'lssyLszhZcsy',
              value: 5
            }, {
              name: '地质',
              key: 'lssyLszhZcsy',
              value: 6
            }, {
              name: '其他',
              key: 'lssyLszhZcsy',
              value: 7
            }]
          },
          {
            name: "功能变更",
            value: '',
            key:'lssyGnbgWbg',
            child: [{
              name: '无变更',
              key: 'lssyGnbgWbg',
              value: 1,
            }, {
              name: '住宅变商业用房',
              key: 'lssyGnbgWbg',
              value: 2,
            }, {
              name: '住宅变办公用房',
              key: 'lssyGnbgWbg',
              value: 3,
            }, {
              name: '办公变商业用房',
              key: 'lssyGnbgWbg',
              value: 4,
            }, {
              name: '工业用房变商业用房',
              key: 'lssyGnbgWbg',
              value: 5,
            }, {
              name: '工业用房变办公用房',
              key: 'lssyGnbgWbg',
              value: 6
            }, {
              name: '其他',
              key: 'lssyGnbgWbg',
              value: 7,
            }]
          }],
        XCDC: [
          {
            name: '未做鉴定',
            key: 'JDQK',
          },
          {
            name: '已做鉴定',
            key: 'JDQK',
            value: '',
            child: [{
              name: '不属危险房屋',
              key: 'JDQK_YZJD',
            }, {
              name: '观察使用',
              key: '',
            }, {
              name: '处理使用',
              key: '',
            }, {
              name: '停止使用',
              key: '',
            }, {
              name: '整体拆除',
              key: '',
            }]
          }],
        ENUM: {
          JGLXARR: [
            {
              "DICNAME":"砌体结构",
              "DICID":"1"
            },
            {
              "DICNAME":"底部框架——上部砌体结构",
              "DICID":"2"
            },
            {
              "DICNAME":"钢筋混凝土结构",
              "DICID":"3"
            }, {
              "DICNAME":"钢结构",
              "DICID":"4"
            },{
              "DICNAME":"木(竹)结构",
              "DICID":"5"
            },
            {
              "DICNAME":"窑洞",
              "DICID":"6"
            },
            {
              "DICNAME":"混杂结构",
              "DICID":"7"
            }, {
              "DICNAME":"土木/石木结构",
              "DICID":"8"
            },
            {
              "DICNAME":"其他",
              "DICID":"99"
            }
          ],
          JGLX: false
        },
      }
    },
    props: {
      row: Object,
      rowDataNew: Object.rowDataNew
    },
    watch:{
      rowDataNew () {
        console.log(this.rowDataNew,'this.rowDataNew')
        this.houseRemoldAuthRecordForm = this.rowDataNew
      }
    },
    filters: {
      inUseName: function (msg, data) {
        let name = ''
        data.forEach(item => {
          if (item.DICID == msg) {
            name = item.DICNAME
          }
        })
        return name
      },
    },
    methods: {
      getData: async function () {
        //获取数据
        var  p={
           "authCompanyName": this.$parent.row.companyName,
           "objectNo":this.$parent.row.objectNo,
           "uscc": this.$parent.row.uscc
         }
        const res = await dangerHousesavegetAllAuthInfo(p);
        if(res&&res.data){
          // this.row=res.data.data.HouseRemoldAuthRecordForm;
          // this.rowDataNew=res.data.data.HouseRemoldAuthSituation;
        }
         console.log(res,'res');

        // let dataGuid = "9788c08d-3d96-4f0d-85da-d233094abcf6"
        // if (this.$parent.row.NODE_GUID === '{27EE0E9F-607B-4D25-8934-3693F950C095}' || this.$parent.row.NODE_GUID === '{7A93D2DC-D4B9-4E6A-8DC6-4C2FDFBB9D45}'|| this.$parent.row.NODE_GUID === '{B4FCC404-5D84-4F9A-B5A2-243ECE2FB244}'){
        //   dataGuid = "81454c15-9443-443d-a7ab-f6ed4c23f46d"
        // }else{
        //   dataGuid = "9788c08d-3d96-4f0d-85da-d233094abcf6"
        // }
        // let params = {
        //   dataguid: dataGuid,
        //   searchObject: JSON.stringify([{ field: 'to_row_guid', value: this.$parent.row.ROW_GUID, link: 'OR', operator: '=' }]),
        //   token: window.localStorage.getItem('token')
        // }
        // let params1 = {
        //   accessCode: '688bd3883572440a859dfd8ba9194e7b',
        //   "cityCode": window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '',
        //   params: params
        // }
        // const res = await QuerySignCallback(params1)
        // let data = eval('(' + res.data.data + ')').Data[0]
        // if (data){
        //   for (let i in this.HouseRemoldAuthRecordForm){
        //     if (data[i]){
        //       if (i=='JGRQ'){
        //         this.HouseRemoldAuthRecordForm[i] = data[i].split(" ")[0]
        //       }else{
        //         this.HouseRemoldAuthRecordForm[i] = data[i]
        //       }
        //
        //     }
        //   }
        //   console.log(this.HouseRemoldAuthRecordForm.XSJG_QT)
        // }
      },
      formatGetDate(val){
        let year = val.getFullYear();
        let month = val.getMonth() + 1;
        let day = val.getDate();
        let date = new Date()
        let hour = date.getHours()
        let minute = date.getMinutes()
        let second = date.getSeconds()
        // let hour = val.getHours();
        // let minute = val.getMinutes();
        // let second = val.getSeconds()
        if (month >= 1 && month <= 9) {
          month = `0${month}`;
        }
        if (day >= 1 && day <= 9) {
          day = `0${day}`;
        }
        if (hour >= 0 && hour <= 9) {
          hour = `0${hour}`;
        }
        if (minute >= 0 && minute <= 9) {
          minute = `0${minute}`;
        }
        if (second >= 0 && second <= 9) {
          second = `0${second}`
        }
        let data = `${year}-${month}-${day} ${hour}:${minute}:${second}`
        return data
      },
      CheckChange(data){
        this.houseRemoldAuthRecordForm[data.key] = 1
        // console.log(data,this.houseRemoldAuthRecordForm[data.key],'this.houseRemoldAuthRecordForm[data.key]')
        //
        // if (data.name=='其他'){
        //   // alert(1)
        //   if (this.HouseRemoldAuthRecordForm[data.key]){
        //     this.HouseRemoldAuthRecordForm[data.key] = ""
        //   }

        // }
        // alert(2)
      },
      radioChange(val){
        console.log(val,'val')
        // let valData = val.split('_')
        // console.log(valData,valData[1],valData[2],'valData')
        // this.houseRemoldAuthRecordForm[val.key] = val.value
      },
      //竣工时间
      onConfirm(val) {
        this.showPickerq = false
        this.houseRemoldAuthRecordForm.endDate = this.formatGetDate(val)
      },
      //结构类型
      onConfirmJGLX(data) {
        this.ENUM.JGLX = false
        this.houseRemoldAuthRecordForm.jglx = data.DICID
      },
      //获取界面所需字典值
      getEnum: async function (viewID) {
        // let _this = this;
        // let params = {
        //   dataguid: viewID,
        //   searchObject: JSON.stringify([]),
        //   token: window.localStorage.getItem('token')
        // }
        // let params1 = {
        //   accessCode: '688bd3883572440a859dfd8ba9194e7b',
        //   "cityCode": window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '',
        //   params: params
        // }
        // const res = await QuerySignCallback(params1)
        // let data = eval('(' + res.data.data + ')').Data
        // switch (viewID) {
        //   case "b65d1943-66f4-49b1-b759-cd9f079dc0d3":
        //     this.ENUM.JGLXARR = data;
        //     break;
        //   default:
        //     break;
        // }
      },
    },
    mounted() {
      debugger
      console.log(this.$parent,this.$parent.CheckeRgisterNew,'rowDataNew')
      // this.$nextTick(()=>{
      //   // this.getData()
      //   this.houseRemoldAuthRecordForm = this.$parent.CheckeRgisterNew
      //   // this.houseRemoldAuthRecordForm = Object.keys(this.$parent.RgisterNewrow)
      // })
      // this.getEnum("b65d1943-66f4-49b1-b759-cd9f079dc0d3")
    }
  };
</script>

<style lang="scss">
  #CheckeRgisterNew {
    .title {
      text-align: center;
      font-weight: bold;
      padding: 10px 0
    }

    .subTitle {
      height: 40px;
      line-height: 40px;
      font-size: 16px;
      font-weight: bolder;
    }

    .subTitle1 {
      color: #3f8ffc;
      margin-top: 10px;
      font-size: 16px;
    }

    .van-field {
      width: 100%;
      border-bottom: 1px solid #d2d2d2;
    }

    .vanCheckbox {
      padding: 10px 0;
      border-bottom: 1px solid #d2d2d2;
    }

    .van-radio {
      margin: 0 6px;
      align-items: flex-start;
    }

    .van-radio--horizontal {
      margin-right: 0;
    }

    .van-radio__label {
      margin-left: 2px;
    }
  }
</style>

